<?php
/**
  *@function 得到所有的分类信息
  *
  *@date 2013-05-29 20:17
  *
  */
class M_admin extends CI_Model {

    function __construct()
    {
        parent::__construct();
		$this->load->database();
    }
    
    /**
     * 查询admin信息
     * 
     * @param int $admin_id 管理员ID
     * 
     * @return 
     */
    public function selectAdminByID($admin_id)
    {
    	return $this->db->get_where("fz_admin",array('admin_id'=>$admin_id))->result();
    }
    
    /**
     * 查询admin信息
     *
     * @param int $admin_id 管理员ID
     *
     * @return
     */
    public function selectAdminByEmail($email)
    {
    	return $this->db->get_where("fz_admin",array('admin_email'=>$email))->result();
    }
}